package com.lagou;

import com.lagou.curator.GetNoteCurator;
import com.lagou.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

@SpringBootApplication
public class ClientBootStrap {

    private static  ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor();

    private static UserService proxy;

    public static void main(String[] args) throws InterruptedException {
        SpringApplication.run(ClientBootStrap.class, args);
        GetNoteCurator getNoteCurator = new GetNoteCurator();
        getNoteCurator.initData();
        getNoteCurator.subscribeChildChanges();
    }


}
